package exam.web.action;

import exam.common.util.NullCheckUtil;
import exam.web.action.base.StudentActionBase;

public class ViewStudentAction extends StudentActionBase {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public String execute() throws Exception {
		String studentCd = request.getParameter("studentCd");
		if (NullCheckUtil.isNUll(studentCd)) {
			addActionError("#id không hợp lệ");
			return ERROR;
		} else {
			tStudentEntity = studentDAO.selectByCd(studentCd);
			return SUCCESS;
		}		
	}
}
